package com.rj.core.domain;

import com.rj.core.type.BeanType;

import java.util.HashMap;

/**
 * 数据处理Map
 *
 * @author YFX_RANLUBO
 * @date 2022/10/20 17:11
 **/
public class Domain extends HashMap<String, Object> {
    /**
     * 是否开启检查
     */
    public boolean openCheck = false;

    public <V> V get(BeanType key) {
        return (V) this.get(key.getFiledKey());
    }

    public <V> void set(BeanType key, V value) {
      /*  if (this.openCheck) {
            AssertUtils.check(value, key);
        }*/
        this.put(key.getFiledKey(), value);
    }

    public void doneCheck() {
    }
}
